package com.ug_project.views

import android.support.v4.app.Fragment
import com.ug_project.alert.alert

/**
 * Created by yeganaaa on 5/10/2017 : 3:07 AM.
 */

fun Fragment.successToast() {
    activity.showToast(getString(R.string.text_success))
}

fun Fragment.errAlert() {
    activity.alert(getString(R.string.text_failed))
}

fun Fragment.errAlert(msg: String) {
    activity.alert(getString(R.string.text_failed), msg)
}

val Fragment.deviceId: String
    get() {
        return activity.deviceId
    }